package com.yichen.rent.pojo;


import lombok.*;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@ToString
@Table(name="message")
public class Message implements Serializable {
    @Id
    private String id;
    private String msg;
    /**
     * 消息状态，1-未读，2-已读
     */
    private Integer status;
    private String sendDate;
    private String readDate;
    private String fromId;
    private String toId;
}